import instance from "@/tools/axios";

// 添加线上客户订单
const addOnlineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOnlineOrders/Add", data);
};
// 删除线上客户订单
const deleteOnlineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOnlineOrders/Delete", data);
};
// 修改线上客户订单
const updateOnlineOrders = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOnlineOrders/Update", data);
};
// 查询线上客户订单的编号
const getOnlineOrders = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysOnlineOrders/GetOnlineOrders", params);
};
// 查询线上客户订单的数据
const getOnlineOrder = async (): Promise<ResponseApiDto> => {
    return instance.get("/SysOnlineOrders/GetOnlineOrder",);
};
export { 
    addOnlineOrders,
    updateOnlineOrders,
    getOnlineOrders,
    getOnlineOrder,
    deleteOnlineOrders
};